<?php

namespace App\View;

/*
    guestbook/widgets/Comment
                     ../Widget.php
                     ../CommentWidget.phtml
                     ../Config.php
 ./Widget.php
    class Widget extends App\View\Widget
    {}
*/

abstract class Widget
{
    protected $name = 'CommentWidget';

    public function getData(){}

    public function render($name = '')
    {
        include __DIR__ . DS. $this->name. '.phtml';
    }
}